package com.example.onlinemusic.mapper;

import com.example.onlinemusic.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {
    int insert(String title,String singer,String time,String url,int userid);
    Music findMusicById(int id);
    int deleteMusicById(int musicId);
    List<Music> findMusic();
    List<Music> findMusicByName(String name);
}
